package com.hung.rpcsimple.provider;

import com.hung.rpcsimple.api.IRPCService;

/**
 * @author Hung
 * @date 2022/8/17 17:01
 */
public class RpcServiceImpl implements IRPCService {


    @Override
    public int add(int a, int b) {
        return a + b;
    }

    @Override
    public int sub(int a, int b) {
        return a - b;
    }

    @Override
    public int mul(int a, int b) {
        return a * b;
    }

    @Override
    public int div(int a, int b) {
        return a / b;
    }
}
